package com.neutech.controller;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
public class AdminController {
//    @Autowired
//    private MenuService menuService;
    /*******************医生___START*************************/
//    @Autowired
//    private DoctorService doctorService;
//    @RequestMapping("/queryDoctor")
//    public List<Map<String,Object>> getDoctor(){
//        return doctorService.queryDoctor();
//    }
//    @RequestMapping("/insertDoctor")
//    public void insDoctor(@RequestParam Map  map){
//        doctorService.insertDoctor(map);
//        System.out.println(map.get("docid"));
//    }
//    @RequestMapping("/deleteDoctor")
//    public void delDoctor(@RequestParam Map  map){
//        doctorService.deleteDoctor(map);
//        System.out.println(map.get("docid"));
//    }
//    @RequestMapping("/updataDoctor")
//    public void updDoctor(@RequestParam Map  map){
////        System.out.println("看这里");
////        System.out.println(map);
////        System.out.println("看这里");
//        Map<String,Object> map2 = new HashMap<>();
//        map2.put("docid",map.get("docid"));
//        map2.put("name",map.get("name"));
//        map2.put("depid",map.get("depid"));
//        map2.put("account",map.get("account"));
//        map2.put("password",map.get("password"));
//        map2.put("level",map.get("level"));
//        map2.put("quota",map.get("quota"));
//        map2.put("fees",map.get("fees"));
//        doctorService.updataDoctor(map2);
//    }
    /**************************END*******************************/

    /*******************科室___START*************************/
//    @Autowired
//    private DepartmentService departmentService;
//    @RequestMapping("/queryDepartment")
//    public List<Map<String,Object>> getDepartment(){
//        return departmentService.queryDepartment();
//    }
//    @RequestMapping("/insertDepartment")
//    public void insDepartment(@RequestParam Map  map){
////        System.out.println("看这里！");
////        System.out.println(map.get("depid"));
//        map.put("number",0);
//        departmentService.insertDepartment(map);
//    }
//    @RequestMapping("/deleteDepartment")
//    public void delDepartment(@RequestParam Map  map){
//        departmentService.deleteDepartment(map);
//        //System.out.println(map.get("depid"));
//    }
//    @RequestMapping("/updataDepartment")
//    public void updDepartment(@RequestParam Map  map){
//        System.out.println("看这里");
//        System.out.println(map);
//        System.out.println("看这里");
//        Map<String,Object> map2 = new HashMap<>();
//        map2.put("depid",map.get("depid"));
//        map2.put("name",map.get("name"));
//        map2.put("deptype",map.get("deptype"));
//        map2.put("number",map.get("number"));
//        System.out.println(map2);
//        departmentService.updataDepartment(map2);
//    }
    /**************************END*******************************/
    /*******************排班___START*************************/
//    @Autowired
//    private SchedulService schedulService;
//    @RequestMapping("/querySchedul")
//    public List<Map<String,Object>> getSchedul(){
//        return schedulService.querySchedul();
//    }
//    @RequestMapping("/insertSchedul")
//    public void insSchedul(@RequestParam Map  map){
//        //System.out.println("看这里！");
//        //System.out.println(map);
//        schedulService.insertSchedul(map);
//    }
//    @RequestMapping("/deleteSchedul")
//    public void delSchedul(@RequestParam Map  map){
//        schedulService.deleteSchedul(map);
//        //System.out.println(map.get("depid"));
//    }
//    @RequestMapping("/updataSchedul")
//    public void updSchedul(@RequestParam Map  map){
//        System.out.println("看这里");
//        System.out.println(map);
//        System.out.println("看这里");
//        Map<String,Object> map2 = new HashMap<>();
//        map2.put("schid",map.get("schid"));
//        map2.put("docid",map.get("docid"));
//        map2.put("depid",map.get("depid"));
//        map2.put("depname",map.get("depname"));
//        map2.put("docname",map.get("docname"));
//        map2.put("monday",map.get("monday"));
//        map2.put("tuesday",map.get("tuesday"));
//        map2.put("wednesday",map.get("wednesday"));
//        map2.put("thursday",map.get("thursday"));
//        map2.put("friday",map.get("friday"));
//        map2.put("saturday",map.get("saturday"));
//        map2.put("sunday",map.get("sunday"));
//        System.out.println(map2);
//        schedulService.updataSchedul(map2);
//    }
    /**************************END*******************************/
}
